<?php
class Administrator_Form_AddMasterKey extends Zend_Form{
	public function init(){
	
		$this->setAction('')->setMethod('post');
	
		$data['name'] = $this->createElement('text', 'name')->setAttrib('class', 'input');
		$data['email'] = $this->createElement('text', 'email')->setAttrib('class', 'input');
		$data['phone'] = $this->createElement('text', 'phone')->setAttrib('class', 'input');
		$data['userid'] = $this->createElement('text', 'userid')->setAttrib('class', 'input');
		$data['model'] = $this->createElement('text', 'model')->setAttrib('class', 'input');
		$data['os'] = $this->createElement('text', 'os')->setAttrib('class', 'input');
		$data['payment'] = $this->createElement('text', 'payment')->setAttrib('class', 'input');
		$data['masterkey'] = $this->createElement('text', 'masterkey')->setAttrib('class', 'input');
	
		//$data['resetmk'] = $this->createElement('checkbox', 'resetmk');
		$data['submit'] = $this->createElement('submit', 'submit')->setLabel('Gửi Master Key')->setAttrib('class', 'sendmasterkey');
		
		$this->setDecorators(array(array('viewScript', array('viewScript' => 'forms/viewForm_addMasterKey.phtml'))));
		$data['submit']->removeDecorator('DtDdWrapper');
		foreach($data as $item){
			$item->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label');
		}
		$this->addElements($data);
	}
}